package study;

import java.math.BigDecimal;
import java.util.*;

/**
 * @Author 刘伟涛
 * @Date 2024/1/5 9:49
 **/
public class Demo7 {
    public static void main(String[] args){
        List<Integer> integers = Arrays.asList(1, 2, 3);
        List<Integer> newList = new ArrayList<>();
        for (Integer integer : newList) {
            System.out.println("3");
            System.out.println(integer);
        }
        /*for (int i = 0; i < 4; i++) {
            newList.addAll(integers);
        }
        System.out.println(newList);*/
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < 10; i++) {
            map.put("张三" + i,i);
        }
        for (String s : map.keySet()) {
            System.out.println(map.get(s));
        }
        String name = "12";
        String[] split = name.split(",");
        for (String s : split) {
            System.out.println("第几遍？");
            System.out.println(s);
        }
        BigDecimal num = new BigDecimal("1000000000000000");
        BigDecimal num1 = new BigDecimal("25.55");
        System.out.println(num.add(num1));
    }
}
